<?php
  $upProgressKey = uniqid();
?>
<form enctype="multipart/form-data" id="upload_form" action="<?php echo url_for("upload/save");?>" onsubmit="postForm('progress.php','upload_form'); return false;" method="POST">
    <?php echo $upProgressKey;?>
    <input type="file" id="up_file1" name="up_files[]"/><br/>
    <input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key" value="uk_123456"/>
    <input type="file" id="up_file2" name="up_files[]"/><br/>
    <input type="file" id="up_file3" name="up_files[]"/><br/>
    <input type="submit" value="Upload!"/>
</form>
<div id="progress_win">
    <div class="hd" style="color: #222; background: #bbb"></div>
    <div class="bd"></div>
    <div class="ft"></div>
</div>

<form action="<?php echo url_for('upload/save') ?>" method="POST">
  <table>
    <?php echo $form ?>
    <tr>
      <td colspan="2">
        <input type="submit" />
      </td>
    </tr>
  </table>
</form>